<template>
	<view class="change">
		<view class="head">
			<view class="user" is-link bind:click="showPopup" @click="isshow">
				<text style="font-size: 28rpx;color: #333333;padding-top: 31rpx;padding-left: 20rpx">头像</text>
				<image style="width: 80rpx;height: 80rpx;" src="https://obs-4a40.obs.cn-southwest-2.myhuaweicloud.com/shop/userhead.png" mode=""></image>
			</view>
			<view class="name">
				<text style="color: #333333;font-size: 28rpx;margin-right: 20rpx">昵称:</text>
				<text style="color: #333333;font-size: 28rpx;">123456789</text>
			</view>
			<view class="name">
				<text style="color: #333333;font-size: 28rpx;margin-right: 20rpx;">简介:</text>
				<text style="color: #333333;font-size: 28rpx;">个人简介</text>
			</view>
		</view>
		<!-- 弹窗 -->
		<view class="modelbox" v-show="show">
			<view class="model">
				<view class="poto">
					<view class="take">
						<text style="font-size: 34rpx;">拍照</text>
					</view>
					<view class="phone">
						<text style="font-size: 34rpx;">从手机相册中选择</text>
					</view>
				</view>
				<view class="cancel" @click="isshow">
					<text style="font-size: 34rpx;">取消</text>
				</view>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				show: false,
				data:'',
			}
		},
		onLoad() {
			// 设置资料
			// const requestMoney = {
			// 	url: `/api/account/updateAccountData`,
			// 	method: "post",
			// 	data:{
			// 		name:"admins",
			// 		introduce:"简介",
			// 		image:"default.gif"
			// 	},
			// 	callBack: (res) => {
			// 		console.log(res.data);
			// 		this.text = 'request success';
			// 		this.data=res.data
					
			// 	}
			// }
			// this.$http.request(requestMoney)
		},

		methods: {
			isshow() {
				this.show = !this.show;
			}
		}
	}
</script>

<style>
	.change {
		width: 100%;
		height: 100vh;
		background-color: #F1F1F1;
		padding: 20rpx;
	}

	.change .head {
		height: 272rpx;
		background-color: #FFFFFF;
		border-radius: 3%;
		width: 94%;
	}

	.change .head .user {
		width: 710rpx;
		height: 104rpx;
		border-bottom: 2px solid #F1F1F1;
		display: flex;
		justify-content: space-between;
		flex-direction: row;
		position: relative;
	}

	.change .head .user image {
		position: absolute;
		top: 11rpx;
		left: 613rpx;
	}

	.change .head .name {
		width: 710rpx;
		height: 40rpx;
		border-bottom: 2px solid #F1F1F1;
		display: flex;
		flex-direction: row;
		padding: 20rpx;
	}

	.change .head .name:nth-child(3) {
		border-bottom: none;
	}

	.model {
		width: 100%;
		height: 336rpx;
		background-color: #F2F2F2;
		position: fixed;
		bottom: 0;
	}

	.take {
		background-color: #FFFFFF;
		height: 112rpx;
		border-radius: 24px 24px 0px 0px;
		border-bottom: 1px solid #F1F1F1;
		line-height: 112rpx;
		text-align: center;
	}

	.phone {
		background-color: #FFFFFF;
		height: 112rpx;
		line-height: 112rpx;
		text-align: center;
	}

	.cancel {
		background-color: #FFFFFF;
		margin-top: 20rpx;
		height: 112rpx;
		line-height: 112rpx;
		text-align: center;
	}

	.modelbox {
		background-color: rgba(0, 0, 0, 0.5);
		width: 100%;
		height: 100vh;
		z-index: 100;
		position: fixed;
		top: 0;
		left: 0;
		right: 0;
		bottom: 0;
	}
</style>
